//
// Buttons
// --------------------------------------------------


// Customize styles
// --------------------------------------------------

.btn {
	outline: 0 !important;
	border-radius: 2px;
    padding: 6px 15px;
    font-weight: 600;
    .box-shadow-helper(1);
    &.btn-circle {
        border-radius: 50%;
    }
    &.btn-circle, &.btn-square {
        width: 34px;
        height: 34px;
        text-align: center;
        padding: 0;
        &.btn-xl {
            width: 60px;
            height: 60px;
            padding: 18px 0;
        }
        &.btn-lg {
            width: 46px;
            height: 46px;
            padding: 0; 
        }
        &.btn-sm {
            width: 30px;
            height: 30px;
            padding: 0;    
        }
        &.btn-xs {
            width: 22px;
            height: 22px;
            padding: 0;
        }
    }
}



// Button Sizes
// --------------------------------------------------

.btn-lg {
    padding: 10px 20px;
	border-radius: 2px;
}
.btn-sm {
    padding: 5px 12px;
	border-radius: 2px;
}
.btn-xs {
    padding: 1px 4px;
	border-radius: 2px;
}

// Alternate buttons
// --------------------------------------------------

.btn-default {
    .button-variant(@light-black; @white; @white);
}
.btn-primary {
    .button-variant(@white; @primary; @primary);
}
.btn-success {
    .button-variant(@white; @success; @success);
}
.btn-info {
    .button-variant(@white; @info; @info);
}
.btn-warning {
    .button-variant(@white; @warning; @warning);
}
.btn-danger {
    .button-variant(@white; @danger; @danger);
}
.btn-gray {
    .button-variant(@white; @gray; @gray);
}
.btn-purple {
    .button-variant(@white, @purple, @purple);
}
.btn-orange {
    .button-variant(@white, @orange, @orange);
}
.btn-pink {
    .button-variant(@white, @pink, @pink);
}
.btn-green {
    .button-variant(@white, @green, @green);
}
.btn-lime {
    .button-variant(@white, @lime, @lime);
}
.btn-black {
    .button-variant(@white, @lighter-black, @lighter-black);
}
// Button variants

.button-variant(@color; @background; @border) {
    color: @color;
    background-color: @background;
    border-color: @border;
    &:focus,
    &.focus {
        color: @color !important;
        background-color: darken(@background, 10%) !important;
        border-color: darken(@border, 10%) !important;
        .box-shadow-helper(2);
    }
    &:hover {
        color: @color !important;
        background-color: darken(@background, 5%) !important;
        border-color: darken(@border, 5%) !important;
        .box-shadow-helper(2);
    }
    &:active,
    &.active,
    .open > .dropdown-toggle& {
        color: @color;
        background-color: darken(@background, 5%);
        border-color: darken(@border, 5%);
        .box-shadow-helper(2);
        &:hover,
        &:focus,
        &.focus {
            color: @color;
            background-color: darken(@background, 5%);
            border-color: darken(@border, 5%);
        }
    }
    &.disabled,
    &[disabled],
    fieldset[disabled] & {
        &,
        &:hover,
        &:focus,
        &.focus,
        &:active,
        &.active {
            background-color: @background;
            border-color: @border;
            .box-shadow-helper(1);
        }
    }
    .badge {
        color: @background;
    }
}


// Alternate flat buttons
// --------------------------------------------------

.btn-flat.btn-default {
    .flat-button-variant(@white);
}
.btn-flat.btn-primary {
    .flat-button-variant(@primary);
}
// Success appears as green
.btn-flat.btn-success {
    .flat-button-variant(@success);
}
// Info appears as blue-green
.btn-flat.btn-info {
    .flat-button-variant(@info);
}
// Warning appears as orange
.btn-flat.btn-warning {
    .flat-button-variant(@warning);
}
// Danger and error appear as red
.btn-flat.btn-danger {
    .flat-button-variant(@danger);
}
.btn-flat.btn-gray {
    .flat-button-variant(@gray);
}
.btn-flat.btn-purple {
    .flat-button-variant(@purple);
}
.btn-flat.btn-orange {
    .flat-button-variant(@orange);
}
.btn-flat.btn-pink {
    .flat-button-variant(@pink);
}
.btn-flat.btn-green {
    .flat-button-variant(@green);
}
.btn-flat.btn-lime {
    .flat-button-variant(@lime);
}
.btn-flat.btn-black {
    .flat-button-variant(@lighter-black);
}
// Flat button variants

.flat-button-variant(@color) {
    background-color: transparent;
    color: @color;
    border-color: transparent;
    box-shadow: none;
}

// Alternate outline buttons
// --------------------------------------------------

.btn-outline.btn-default {
    .outline-button-variant(@light-black, @light-gray);
}
.btn-outline.btn-primary {
    .outline-button-variant(@primary, @primary);
}
// Success appears as green
.btn-outline.btn-success {
    .outline-button-variant(@success, @success);
}
// Info appears as blue-green
.btn-outline.btn-info {
    .outline-button-variant(@info, @info);
}
// Warning appears as orange
.btn-outline.btn-warning {
    .outline-button-variant(@warning, @warning);
}
// Danger and error appear as red
.btn-outline.btn-danger {
    .outline-button-variant(@danger, @danger);
}
.btn-outline.btn-gray {
    .outline-button-variant(@gray, @gray);
}
.btn-outline.btn-purple {
    .outline-button-variant(@purple, @purple);
}
.btn-outline.btn-orange {
    .outline-button-variant(@orange, @orange);
}
.btn-outline.btn-pink {
    .outline-button-variant(@pink, @pink);
}
.btn-outline.btn-green {
    .outline-button-variant(@green, @green);
}
.btn-outline.btn-lime {
    .outline-button-variant(@lime, @lime);
}
.btn-outline.btn-black {
    .outline-button-variant(@lighter-black, @lighter-black);
}
// Outline button variants
.outline-button-variant(@color, @border) {
    background-color: transparent;
    color: @color;
    border-color: @border;
    box-shadow: none;
}

// Alternate raised buttons
// --------------------------------------------------

.btn-raised.btn-default {
    .raised-button-variant(@white);
}
.btn-raised.btn-primary {
    .raised-button-variant(@primary);
}
// Success appears as green
.btn-raised.btn-success {
    .raised-button-variant(@success);
}
// Info appears as blue-green
.btn-raised.btn-info {
    .raised-button-variant(@info);
}
// Warning appears as orange
.btn-raised.btn-warning {
    .raised-button-variant(@warning);
}
// Danger and error appear as red
.btn-raised.btn-danger {
    .raised-button-variant(@danger);
}
.btn-raised.btn-gray {
    .raised-button-variant(@gray);
}
.btn-raised.btn-purple {
    .raised-button-variant(@purple);
}
.btn-raised.btn-orange {
    .raised-button-variant(@orange);
}
.btn-raised.btn-pink {
    .raised-button-variant(@pink);
}
.btn-raised.btn-green {
    .raised-button-variant(@green);
}
.btn-raised.btn-lime {
    .raised-button-variant(@lime);
}
.btn-raised.btn-black {
    .raised-button-variant(@lighter-black);
}
// Raised button variants
.raised-button-variant(@border) {
    box-shadow: 0 3px 0 0 darken(@border, 10%);
    &:focus,
    &.focus {
        box-shadow: 0 3px 0 0 darken(@border, 15%);
    }
}

// Rounded buttons
// --------------------------------------------------
.btn-rounded {
    border-radius: 100px !important;
}